<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>异常管理</title>
	<meta name="decorator" content="default"/>
</head>
<body>
	 
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th class="sort-column name">主机</th>
				<th class="sort-column name">阀值</th>
				<th class="sort-column name">错误</th>
				<th class="sort-column name">级别</th>
				<th class="sort-column name">时间</th>
				<th class="sort-column name">描述</th>
				<th class="sort-column name">提示</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${list}" var="item">
			<tr>
				<td>${item.host}</td>
				<td>${item.triggerid}</td>
				<td>${item.error}</td>
				<td>
					<c:if test="${item.priority == '0'}">未分类</c:if>
					<c:if test="${item.priority == '1'}"><span style="color: black;">信息</span></c:if>
					<c:if test="${item.priority == '2'}"><span style="color: orange;">警告</span></c:if>
					<c:if test="${item.priority == '3'}"><span style="color: blue;">典型</span></c:if>
					<c:if test="${item.priority == '4'}"><span style="color: magenta;">严重</span></c:if>
					<c:if test="${item.priority == '5'}"><span style="color: red;">灾难</span></c:if>
				</td>
				<td>${item.lastchange}</td>
				<td>${item.description}</td>
				<td>${item.comments}</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
</body>
</html>